﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请用户输入要狗还是鱼？（狗/鱼");
            string str = Console.ReadLine();
            if (str.Equals("狗")) 
            {
                Console.WriteLine("请输入狗的名字：");
                Dog dog = new Dog();
                dog.Animalname = Console.ReadLine();
                Console.WriteLine("请输入狗的颜色：");
                dog.AnimalColor = Console.ReadLine();
                dog.Bite();
            }
            if (str .Equals("鱼"))
            {
                Console.WriteLine("请输入鱼的名字：");
                Fish fish = new Fish();
                fish.Animalname = Console.ReadLine();
                Console.WriteLine("请输入鱼的颜色：");
                fish.Animalname = Console.ReadLine();
                fish.BlowBubble();
            }
            Console.WriteLine("结束");
        }
    }
}
